import http from '../../../http/http'
import * as url from '../../../api/lajApi'
// import xxx from './xxx.js'//这是你的一个页面的vuex数据的导入
const  modules= {//这里暴露自己vuex页面的模块到主index.js
  actions:{
    schedule({commit},obj){
      return http({
        url:'/api'+url.SCHEDULE,
        method:'POST',
        data:obj,
      }).then(res=>{
        return res
      }).catch(err=>{
        console.log(err)
      })
    },
    salary({commit},obj){
      return http({
        url:'/api'+url.SALARY,
        method: 'POST',
        data:obj,
      }).then(res=>{
        console.log(res)
      }).catch(err=>{
        console.log(err)
      })
    }
  },
  mutations:{},
  state:{
    testMsg: '测试数据'
  },
  getters:{}
};
export default modules
